package jhelp;

/**
 * Created with IntelliJ IDEA.
 * User: alex
 * Date: 02.12.13
 * Time: 12:50
 * SVN $Id$
 */
public class JHelpDataSource {
    private String definition;
    private String keyword;
    private String hostName;
    private int port;
    private String fileName;
    private boolean connectState;
    private boolean fileState;
    private Client client;

    public boolean isFileLoaded() {
        return fileState;
    }

    public void setFileState(boolean fileState) {
        this.fileState = fileState;
    }


    public JHelpDataSource() {
        connectState = false;
        fileState = false;
        hostName = "";
        port = 0;
        fileName = "";
        connectState = false;
        fileState = false;
        keyword = "";
        definition = "";
        client = null;
    }

    public JHelpDataSource(String hostName, int port) {
        this();
        this.hostName = hostName;
        this.port = port;
    }

    public JHelpDataSource(String fileName) {
        this();
        this.fileName = fileName;
    }

    public Client getClient() {
        return client;
    }

    public void setClient(Client client) {
        this.client = client;
    }

    public boolean isConnect() {
        return connectState;
    }

    public void setConnectState(boolean connectState) {
        this.connectState = connectState;
    }

    public String getDefinition() {
        return definition;
    }

    public void setDefinition(final String definition) {
        this.definition = definition;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(final String keyword) {
        this.keyword = keyword;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(final String hostName) {
        this.hostName = hostName;
    }

    public int getPort() {
        return port;
    }

    public void setPort(final int port) {
        this.port = port;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(final String fileName) {
        this.fileName = fileName;
    }

}
